﻿@model EPiBoost.Core.Model.NavigationLink

<li class=" @((Model.IsAncestorOfCurrentPage) ? "expanded" : string.Empty)">
	<a href="@Model.Page.GetExternalUrl()" class="@((Model.IsCurrentPage) ? "selected" : string.Empty)">@Model.Page.GetMainShortTitle()</a>
	
	@if (Model.HasChildNavigationLinks)
	{
		<ul>
			@foreach (var link in Model.ChildNavigationLinks)
			{
			     Html.RenderPartial("Navigation/_ChildNavigation", link); 
			}
		</ul>
	}
</li>